package org.loneranger.p3_instantiation_aware;

import org.loneranger.p3_instantiation_aware.bean.IaService;
import org.loneranger.p3_instantiation_aware.config.IaConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * bean的生命周期：实例化前和实例化后
 */
public class IaTest {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext =
                new AnnotationConfigApplicationContext(IaConfig.class);
        IaService iaService = applicationContext.getBean("iaService", IaService.class);

    }
}
